package com.lili.model.operate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("li_distribution")
public class Distribution implements Serializable {
    private static final long SerialVersionUID = 1L;
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    Long id;
    String createBy;
    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    LocalDateTime createTime;
    @TableLogic(value = "false", delval = "true")
    Byte deleteFlag;
    String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    LocalDateTime updateTime;

    Double canRebate; //可提现金额
    Double commissionFrozen;//冻结金额

    String distributionStatus;//分销商状态
    String memberId;
    String memberName;
    Double rebateTotal;
    String idNumber;
    String name;
    Integer distributionOrderCount; //分销订单数
    String settlementBankAccountName;
    String settlementBankAccountNum;
    String settlementBankBranchName;
}
